home *** CD-ROM | disk | FTP | other *** search
- 107
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Specifying file names
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- You should always pass in the full path name to the file you want to work with. For example, use
- --- RECORDSEPARATOR ---
- baOpenFile( "Mac HD:Data:myfile.pdf", "normal" ) ΓÇô
- --- RECORDSEPARATOR ---
- Mac
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baOpenFile( "c:\Data\myfile.pdf", "normal" ) ΓÇô
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- rather than
- --- RECORDSEPARATOR ---
- baOpenFile( "myFile.pdf", "normal" )
- --- RECORDSEPARATOR ---
- You should do this even when the file you are working with is in the same folder as your projector. If
- --- RECORDSEPARATOR ---
- you want to work with a file that is relative to your projector, then you can use Lingo's the
- --- RECORDSEPARATOR ---
- applicationPath or the moviePath variables. These variables return the path to the projector or the
- --- RECORDSEPARATOR ---
- current .dir file. To open a file in the same folder as your projector, use:
- --- RECORDSEPARATOR ---
- baOpenFile( the applicationPath & "myFile.pdf" )
- --- RECORDSEPARATOR ---
- To open a file in a folder, add it to the path.
- --- RECORDSEPARATOR ---
- baOpenFile( the applicationPath & "data:myFile.pdf" ) ΓÇô
- --- RECORDSEPARATOR ---
- Mac
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baOpenFile( the applicationPath & "data\myFile.pdf" ) ΓÇô
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- You can also use Lingo's @ operator. This is the same as the moviePath, but can be used to specify
- --- RECORDSEPARATOR ---
- cross-platform path names. Where a : / or \ character is included in your path name, it will be
- --- RECORDSEPARATOR ---
- translated to the appropriate path separator.
- --- RECORDSEPARATOR ---
- baOpenFile( "@:Data:myFile.pdf", "normal" )
- --- RECORDSEPARATOR ---
- baOpenFile( "@/Data/myFile.pdf", "normal" )
- --- RECORDSEPARATOR ---
- baOpenFile( "@\Data\myFile.pdf", "normal" )
- --- RECORDSEPARATOR ---
- will all open the myfile.pdf in the Data subfolder on both platforms.
- --- RECORDSEPARATOR ---
- You must include a folder separator after the @.
- --- RECORDSEPARATOR ---
- For the @ operator to work, you need Mac version 1.4 and Windows 3.6.